package org.example.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.Item;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Mapper
public interface ItemMapper extends BaseMapper<Item> {
    //添加商品种类
    int insertIntem(@Param("item")Item item);

    //分页查询item
    List<Item> getItemAll(@Param("offset") Integer offset,@Param("limit") Integer limit);

}